package com.vrv.utils;

public class Constans {
    public static final String PRODUCES = "application/json; charset=utf-8";

    public static final String RES_URL = SystemConfig.getStr("restful_url");

    public static final String LOCALBEAT_URL = SystemConfig.getStr("localbeat_url");

    public interface module {
        /**
         * 主机
         */
        String HOST = "host";

        /**
         * 服务
         */
        String SERVICE = "service";

        /**
         * 用户
         */
        String USER = "user";

        /**
         * 采集节点
         */
        String COLLECT = "collect";

        /**
         * 采集规则
         */
        String BEAT = "beat";

        /**
         * 日志提取
         */
        String EXTRACT = "extract";

        /**
         * 其他
         */
        String OTHER = "other";

    }

    public interface operate {
        String ADD = "add";

        String EDIT = "edit";

        String DEL = "del";

        String LOGIN = "login";

        String LOGOUT = "logout";
    }

    public interface grade {
        /**
         * 信息
         */
        int INFO = 1;

        /**
         * 通知
         */
        int NOTICE = 2;

        /**
         * 警告
         */
        int WARNING = 3;

        /**
         * 错误
         */
        int ERROR = 4;

        /**
         * 关键
         */
        int CRUX = 5;

        /**
         * 警报
         */
        int ALERT = 6;

        /**
         * 紧急
         */
        int URGENT = 7;
    }

    /**
     * 数据库信息
     */
    public interface dbInfo {
        /**
         * 数据库类型
         */
        String type = SystemConfig.getStr("type");

        /**
         * 数据库ip
         */
        String ip = SystemConfig.getStr("ip");

        /**
         * 端口
         */
        String port = SystemConfig.getStr("port");

        /**
         * 数据库名称
         */
        String dbname = SystemConfig.getStr("dbname");

        /**
         * 登录账号
         */
        String user = SystemConfig.getStr("user");

        /**
         * 密码
         */
        String passwd = SystemConfig.getStr("passwd");
    }
}
